package com.my.code.map;

import com.google.common.collect.Sets;

import java.util.SortedSet;
import java.util.TreeSet;

/**
 * <b></b><p>
 *
 * @author zzl
 * @date 2020/10/26
 */
public class TestTreeMap {
    public static void main(String[] args) {

        TreeSet<Integer> set = new TreeSet<>(Sets.newHashSet(5, 7, 1, 6, 4, 8, 3, 2));

        //System.out.println("set = " + set);
        SortedSet<Integer> mids = set.tailSet(set.size()/2);

        System.out.println("mids = " + mids);
    }
}
